package cn.com.lsy.product.lepao.model.entities;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class LpCouponTblExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LpCouponTblExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUStoreIdIsNull() {
            addCriterion("u_store_id is null");
            return (Criteria) this;
        }

        public Criteria andUStoreIdIsNotNull() {
            addCriterion("u_store_id is not null");
            return (Criteria) this;
        }

        public Criteria andUStoreIdEqualTo(String value) {
            addCriterion("u_store_id =", value, "uStoreId");
            return (Criteria) this;
        }

        public Criteria andUStoreIdNotEqualTo(String value) {
            addCriterion("u_store_id <>", value, "uStoreId");
            return (Criteria) this;
        }

        public Criteria andUStoreIdGreaterThan(String value) {
            addCriterion("u_store_id >", value, "uStoreId");
            return (Criteria) this;
        }

        public Criteria andUStoreIdGreaterThanOrEqualTo(String value) {
            addCriterion("u_store_id >=", value, "uStoreId");
            return (Criteria) this;
        }

        public Criteria andUStoreIdLessThan(String value) {
            addCriterion("u_store_id <", value, "uStoreId");
            return (Criteria) this;
        }

        public Criteria andUStoreIdLessThanOrEqualTo(String value) {
            addCriterion("u_store_id <=", value, "uStoreId");
            return (Criteria) this;
        }

        public Criteria andUStoreIdLike(String value) {
            addCriterion("u_store_id like", value, "uStoreId");
            return (Criteria) this;
        }

        public Criteria andUStoreIdNotLike(String value) {
            addCriterion("u_store_id not like", value, "uStoreId");
            return (Criteria) this;
        }

        public Criteria andUStoreIdIn(List<String> values) {
            addCriterion("u_store_id in", values, "uStoreId");
            return (Criteria) this;
        }

        public Criteria andUStoreIdNotIn(List<String> values) {
            addCriterion("u_store_id not in", values, "uStoreId");
            return (Criteria) this;
        }

        public Criteria andUStoreIdBetween(String value1, String value2) {
            addCriterion("u_store_id between", value1, value2, "uStoreId");
            return (Criteria) this;
        }

        public Criteria andUStoreIdNotBetween(String value1, String value2) {
            addCriterion("u_store_id not between", value1, value2, "uStoreId");
            return (Criteria) this;
        }

        public Criteria andUAreaIdIsNull() {
            addCriterion("u_area_id is null");
            return (Criteria) this;
        }

        public Criteria andUAreaIdIsNotNull() {
            addCriterion("u_area_id is not null");
            return (Criteria) this;
        }

        public Criteria andUAreaIdEqualTo(String value) {
            addCriterion("u_area_id =", value, "uAreaId");
            return (Criteria) this;
        }

        public Criteria andUAreaIdNotEqualTo(String value) {
            addCriterion("u_area_id <>", value, "uAreaId");
            return (Criteria) this;
        }

        public Criteria andUAreaIdGreaterThan(String value) {
            addCriterion("u_area_id >", value, "uAreaId");
            return (Criteria) this;
        }

        public Criteria andUAreaIdGreaterThanOrEqualTo(String value) {
            addCriterion("u_area_id >=", value, "uAreaId");
            return (Criteria) this;
        }

        public Criteria andUAreaIdLessThan(String value) {
            addCriterion("u_area_id <", value, "uAreaId");
            return (Criteria) this;
        }

        public Criteria andUAreaIdLessThanOrEqualTo(String value) {
            addCriterion("u_area_id <=", value, "uAreaId");
            return (Criteria) this;
        }

        public Criteria andUAreaIdLike(String value) {
            addCriterion("u_area_id like", value, "uAreaId");
            return (Criteria) this;
        }

        public Criteria andUAreaIdNotLike(String value) {
            addCriterion("u_area_id not like", value, "uAreaId");
            return (Criteria) this;
        }

        public Criteria andUAreaIdIn(List<String> values) {
            addCriterion("u_area_id in", values, "uAreaId");
            return (Criteria) this;
        }

        public Criteria andUAreaIdNotIn(List<String> values) {
            addCriterion("u_area_id not in", values, "uAreaId");
            return (Criteria) this;
        }

        public Criteria andUAreaIdBetween(String value1, String value2) {
            addCriterion("u_area_id between", value1, value2, "uAreaId");
            return (Criteria) this;
        }

        public Criteria andUAreaIdNotBetween(String value1, String value2) {
            addCriterion("u_area_id not between", value1, value2, "uAreaId");
            return (Criteria) this;
        }

        public Criteria andUUseEndDayIsNull() {
            addCriterion("u_use_end_day is null");
            return (Criteria) this;
        }

        public Criteria andUUseEndDayIsNotNull() {
            addCriterion("u_use_end_day is not null");
            return (Criteria) this;
        }

        public Criteria andUUseEndDayEqualTo(Integer value) {
            addCriterion("u_use_end_day =", value, "uUseEndDay");
            return (Criteria) this;
        }

        public Criteria andUUseEndDayNotEqualTo(Integer value) {
            addCriterion("u_use_end_day <>", value, "uUseEndDay");
            return (Criteria) this;
        }

        public Criteria andUUseEndDayGreaterThan(Integer value) {
            addCriterion("u_use_end_day >", value, "uUseEndDay");
            return (Criteria) this;
        }

        public Criteria andUUseEndDayGreaterThanOrEqualTo(Integer value) {
            addCriterion("u_use_end_day >=", value, "uUseEndDay");
            return (Criteria) this;
        }

        public Criteria andUUseEndDayLessThan(Integer value) {
            addCriterion("u_use_end_day <", value, "uUseEndDay");
            return (Criteria) this;
        }

        public Criteria andUUseEndDayLessThanOrEqualTo(Integer value) {
            addCriterion("u_use_end_day <=", value, "uUseEndDay");
            return (Criteria) this;
        }

        public Criteria andUUseEndDayIn(List<Integer> values) {
            addCriterion("u_use_end_day in", values, "uUseEndDay");
            return (Criteria) this;
        }

        public Criteria andUUseEndDayNotIn(List<Integer> values) {
            addCriterion("u_use_end_day not in", values, "uUseEndDay");
            return (Criteria) this;
        }

        public Criteria andUUseEndDayBetween(Integer value1, Integer value2) {
            addCriterion("u_use_end_day between", value1, value2, "uUseEndDay");
            return (Criteria) this;
        }

        public Criteria andUUseEndDayNotBetween(Integer value1, Integer value2) {
            addCriterion("u_use_end_day not between", value1, value2, "uUseEndDay");
            return (Criteria) this;
        }

        public Criteria andUMinBalanceIsNull() {
            addCriterion("u_min_balance is null");
            return (Criteria) this;
        }

        public Criteria andUMinBalanceIsNotNull() {
            addCriterion("u_min_balance is not null");
            return (Criteria) this;
        }

        public Criteria andUMinBalanceEqualTo(BigDecimal value) {
            addCriterion("u_min_balance =", value, "uMinBalance");
            return (Criteria) this;
        }

        public Criteria andUMinBalanceNotEqualTo(BigDecimal value) {
            addCriterion("u_min_balance <>", value, "uMinBalance");
            return (Criteria) this;
        }

        public Criteria andUMinBalanceGreaterThan(BigDecimal value) {
            addCriterion("u_min_balance >", value, "uMinBalance");
            return (Criteria) this;
        }

        public Criteria andUMinBalanceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("u_min_balance >=", value, "uMinBalance");
            return (Criteria) this;
        }

        public Criteria andUMinBalanceLessThan(BigDecimal value) {
            addCriterion("u_min_balance <", value, "uMinBalance");
            return (Criteria) this;
        }

        public Criteria andUMinBalanceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("u_min_balance <=", value, "uMinBalance");
            return (Criteria) this;
        }

        public Criteria andUMinBalanceIn(List<BigDecimal> values) {
            addCriterion("u_min_balance in", values, "uMinBalance");
            return (Criteria) this;
        }

        public Criteria andUMinBalanceNotIn(List<BigDecimal> values) {
            addCriterion("u_min_balance not in", values, "uMinBalance");
            return (Criteria) this;
        }

        public Criteria andUMinBalanceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("u_min_balance between", value1, value2, "uMinBalance");
            return (Criteria) this;
        }

        public Criteria andUMinBalanceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("u_min_balance not between", value1, value2, "uMinBalance");
            return (Criteria) this;
        }

        public Criteria andUGoodsIdIsNull() {
            addCriterion("u_goods_id is null");
            return (Criteria) this;
        }

        public Criteria andUGoodsIdIsNotNull() {
            addCriterion("u_goods_id is not null");
            return (Criteria) this;
        }

        public Criteria andUGoodsIdEqualTo(String value) {
            addCriterion("u_goods_id =", value, "uGoodsId");
            return (Criteria) this;
        }

        public Criteria andUGoodsIdNotEqualTo(String value) {
            addCriterion("u_goods_id <>", value, "uGoodsId");
            return (Criteria) this;
        }

        public Criteria andUGoodsIdGreaterThan(String value) {
            addCriterion("u_goods_id >", value, "uGoodsId");
            return (Criteria) this;
        }

        public Criteria andUGoodsIdGreaterThanOrEqualTo(String value) {
            addCriterion("u_goods_id >=", value, "uGoodsId");
            return (Criteria) this;
        }

        public Criteria andUGoodsIdLessThan(String value) {
            addCriterion("u_goods_id <", value, "uGoodsId");
            return (Criteria) this;
        }

        public Criteria andUGoodsIdLessThanOrEqualTo(String value) {
            addCriterion("u_goods_id <=", value, "uGoodsId");
            return (Criteria) this;
        }

        public Criteria andUGoodsIdLike(String value) {
            addCriterion("u_goods_id like", value, "uGoodsId");
            return (Criteria) this;
        }

        public Criteria andUGoodsIdNotLike(String value) {
            addCriterion("u_goods_id not like", value, "uGoodsId");
            return (Criteria) this;
        }

        public Criteria andUGoodsIdIn(List<String> values) {
            addCriterion("u_goods_id in", values, "uGoodsId");
            return (Criteria) this;
        }

        public Criteria andUGoodsIdNotIn(List<String> values) {
            addCriterion("u_goods_id not in", values, "uGoodsId");
            return (Criteria) this;
        }

        public Criteria andUGoodsIdBetween(String value1, String value2) {
            addCriterion("u_goods_id between", value1, value2, "uGoodsId");
            return (Criteria) this;
        }

        public Criteria andUGoodsIdNotBetween(String value1, String value2) {
            addCriterion("u_goods_id not between", value1, value2, "uGoodsId");
            return (Criteria) this;
        }

        public Criteria andGGetEndTimeIsNull() {
            addCriterion("g_get_end_time is null");
            return (Criteria) this;
        }

        public Criteria andGGetEndTimeIsNotNull() {
            addCriterion("g_get_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andGGetEndTimeEqualTo(Date value) {
            addCriterion("g_get_end_time =", value, "gGetEndTime");
            return (Criteria) this;
        }

        public Criteria andGGetEndTimeNotEqualTo(Date value) {
            addCriterion("g_get_end_time <>", value, "gGetEndTime");
            return (Criteria) this;
        }

        public Criteria andGGetEndTimeGreaterThan(Date value) {
            addCriterion("g_get_end_time >", value, "gGetEndTime");
            return (Criteria) this;
        }

        public Criteria andGGetEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("g_get_end_time >=", value, "gGetEndTime");
            return (Criteria) this;
        }

        public Criteria andGGetEndTimeLessThan(Date value) {
            addCriterion("g_get_end_time <", value, "gGetEndTime");
            return (Criteria) this;
        }

        public Criteria andGGetEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("g_get_end_time <=", value, "gGetEndTime");
            return (Criteria) this;
        }

        public Criteria andGGetEndTimeIn(List<Date> values) {
            addCriterion("g_get_end_time in", values, "gGetEndTime");
            return (Criteria) this;
        }

        public Criteria andGGetEndTimeNotIn(List<Date> values) {
            addCriterion("g_get_end_time not in", values, "gGetEndTime");
            return (Criteria) this;
        }

        public Criteria andGGetEndTimeBetween(Date value1, Date value2) {
            addCriterion("g_get_end_time between", value1, value2, "gGetEndTime");
            return (Criteria) this;
        }

        public Criteria andGGetEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("g_get_end_time not between", value1, value2, "gGetEndTime");
            return (Criteria) this;
        }

        public Criteria andGRegisterIsNull() {
            addCriterion("g_register is null");
            return (Criteria) this;
        }

        public Criteria andGRegisterIsNotNull() {
            addCriterion("g_register is not null");
            return (Criteria) this;
        }

        public Criteria andGRegisterEqualTo(String value) {
            addCriterion("g_register =", value, "gRegister");
            return (Criteria) this;
        }

        public Criteria andGRegisterNotEqualTo(String value) {
            addCriterion("g_register <>", value, "gRegister");
            return (Criteria) this;
        }

        public Criteria andGRegisterGreaterThan(String value) {
            addCriterion("g_register >", value, "gRegister");
            return (Criteria) this;
        }

        public Criteria andGRegisterGreaterThanOrEqualTo(String value) {
            addCriterion("g_register >=", value, "gRegister");
            return (Criteria) this;
        }

        public Criteria andGRegisterLessThan(String value) {
            addCriterion("g_register <", value, "gRegister");
            return (Criteria) this;
        }

        public Criteria andGRegisterLessThanOrEqualTo(String value) {
            addCriterion("g_register <=", value, "gRegister");
            return (Criteria) this;
        }

        public Criteria andGRegisterLike(String value) {
            addCriterion("g_register like", value, "gRegister");
            return (Criteria) this;
        }

        public Criteria andGRegisterNotLike(String value) {
            addCriterion("g_register not like", value, "gRegister");
            return (Criteria) this;
        }

        public Criteria andGRegisterIn(List<String> values) {
            addCriterion("g_register in", values, "gRegister");
            return (Criteria) this;
        }

        public Criteria andGRegisterNotIn(List<String> values) {
            addCriterion("g_register not in", values, "gRegister");
            return (Criteria) this;
        }

        public Criteria andGRegisterBetween(String value1, String value2) {
            addCriterion("g_register between", value1, value2, "gRegister");
            return (Criteria) this;
        }

        public Criteria andGRegisterNotBetween(String value1, String value2) {
            addCriterion("g_register not between", value1, value2, "gRegister");
            return (Criteria) this;
        }

        public Criteria andGCodeIsNull() {
            addCriterion("g_code is null");
            return (Criteria) this;
        }

        public Criteria andGCodeIsNotNull() {
            addCriterion("g_code is not null");
            return (Criteria) this;
        }

        public Criteria andGCodeEqualTo(String value) {
            addCriterion("g_code =", value, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeNotEqualTo(String value) {
            addCriterion("g_code <>", value, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeGreaterThan(String value) {
            addCriterion("g_code >", value, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeGreaterThanOrEqualTo(String value) {
            addCriterion("g_code >=", value, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeLessThan(String value) {
            addCriterion("g_code <", value, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeLessThanOrEqualTo(String value) {
            addCriterion("g_code <=", value, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeLike(String value) {
            addCriterion("g_code like", value, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeNotLike(String value) {
            addCriterion("g_code not like", value, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeIn(List<String> values) {
            addCriterion("g_code in", values, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeNotIn(List<String> values) {
            addCriterion("g_code not in", values, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeBetween(String value1, String value2) {
            addCriterion("g_code between", value1, value2, "gCode");
            return (Criteria) this;
        }

        public Criteria andGCodeNotBetween(String value1, String value2) {
            addCriterion("g_code not between", value1, value2, "gCode");
            return (Criteria) this;
        }

        public Criteria andGParentIsNull() {
            addCriterion("g_parent is null");
            return (Criteria) this;
        }

        public Criteria andGParentIsNotNull() {
            addCriterion("g_parent is not null");
            return (Criteria) this;
        }

        public Criteria andGParentEqualTo(String value) {
            addCriterion("g_parent =", value, "gParent");
            return (Criteria) this;
        }

        public Criteria andGParentNotEqualTo(String value) {
            addCriterion("g_parent <>", value, "gParent");
            return (Criteria) this;
        }

        public Criteria andGParentGreaterThan(String value) {
            addCriterion("g_parent >", value, "gParent");
            return (Criteria) this;
        }

        public Criteria andGParentGreaterThanOrEqualTo(String value) {
            addCriterion("g_parent >=", value, "gParent");
            return (Criteria) this;
        }

        public Criteria andGParentLessThan(String value) {
            addCriterion("g_parent <", value, "gParent");
            return (Criteria) this;
        }

        public Criteria andGParentLessThanOrEqualTo(String value) {
            addCriterion("g_parent <=", value, "gParent");
            return (Criteria) this;
        }

        public Criteria andGParentLike(String value) {
            addCriterion("g_parent like", value, "gParent");
            return (Criteria) this;
        }

        public Criteria andGParentNotLike(String value) {
            addCriterion("g_parent not like", value, "gParent");
            return (Criteria) this;
        }

        public Criteria andGParentIn(List<String> values) {
            addCriterion("g_parent in", values, "gParent");
            return (Criteria) this;
        }

        public Criteria andGParentNotIn(List<String> values) {
            addCriterion("g_parent not in", values, "gParent");
            return (Criteria) this;
        }

        public Criteria andGParentBetween(String value1, String value2) {
            addCriterion("g_parent between", value1, value2, "gParent");
            return (Criteria) this;
        }

        public Criteria andGParentNotBetween(String value1, String value2) {
            addCriterion("g_parent not between", value1, value2, "gParent");
            return (Criteria) this;
        }

        public Criteria andCouponNameIsNull() {
            addCriterion("coupon_name is null");
            return (Criteria) this;
        }

        public Criteria andCouponNameIsNotNull() {
            addCriterion("coupon_name is not null");
            return (Criteria) this;
        }

        public Criteria andCouponNameEqualTo(String value) {
            addCriterion("coupon_name =", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameNotEqualTo(String value) {
            addCriterion("coupon_name <>", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameGreaterThan(String value) {
            addCriterion("coupon_name >", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameGreaterThanOrEqualTo(String value) {
            addCriterion("coupon_name >=", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameLessThan(String value) {
            addCriterion("coupon_name <", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameLessThanOrEqualTo(String value) {
            addCriterion("coupon_name <=", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameLike(String value) {
            addCriterion("coupon_name like", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameNotLike(String value) {
            addCriterion("coupon_name not like", value, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameIn(List<String> values) {
            addCriterion("coupon_name in", values, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameNotIn(List<String> values) {
            addCriterion("coupon_name not in", values, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameBetween(String value1, String value2) {
            addCriterion("coupon_name between", value1, value2, "couponName");
            return (Criteria) this;
        }

        public Criteria andCouponNameNotBetween(String value1, String value2) {
            addCriterion("coupon_name not between", value1, value2, "couponName");
            return (Criteria) this;
        }

        public Criteria andSumIsNull() {
            addCriterion("sum is null");
            return (Criteria) this;
        }

        public Criteria andSumIsNotNull() {
            addCriterion("sum is not null");
            return (Criteria) this;
        }

        public Criteria andSumEqualTo(Long value) {
            addCriterion("sum =", value, "sum");
            return (Criteria) this;
        }

        public Criteria andSumNotEqualTo(Long value) {
            addCriterion("sum <>", value, "sum");
            return (Criteria) this;
        }

        public Criteria andSumGreaterThan(Long value) {
            addCriterion("sum >", value, "sum");
            return (Criteria) this;
        }

        public Criteria andSumGreaterThanOrEqualTo(Long value) {
            addCriterion("sum >=", value, "sum");
            return (Criteria) this;
        }

        public Criteria andSumLessThan(Long value) {
            addCriterion("sum <", value, "sum");
            return (Criteria) this;
        }

        public Criteria andSumLessThanOrEqualTo(Long value) {
            addCriterion("sum <=", value, "sum");
            return (Criteria) this;
        }

        public Criteria andSumIn(List<Long> values) {
            addCriterion("sum in", values, "sum");
            return (Criteria) this;
        }

        public Criteria andSumNotIn(List<Long> values) {
            addCriterion("sum not in", values, "sum");
            return (Criteria) this;
        }

        public Criteria andSumBetween(Long value1, Long value2) {
            addCriterion("sum between", value1, value2, "sum");
            return (Criteria) this;
        }

        public Criteria andSumNotBetween(Long value1, Long value2) {
            addCriterion("sum not between", value1, value2, "sum");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andInsertTimeIsNull() {
            addCriterion("insert_time is null");
            return (Criteria) this;
        }

        public Criteria andInsertTimeIsNotNull() {
            addCriterion("insert_time is not null");
            return (Criteria) this;
        }

        public Criteria andInsertTimeEqualTo(Date value) {
            addCriterion("insert_time =", value, "insertTime");
            return (Criteria) this;
        }

        public Criteria andInsertTimeNotEqualTo(Date value) {
            addCriterion("insert_time <>", value, "insertTime");
            return (Criteria) this;
        }

        public Criteria andInsertTimeGreaterThan(Date value) {
            addCriterion("insert_time >", value, "insertTime");
            return (Criteria) this;
        }

        public Criteria andInsertTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("insert_time >=", value, "insertTime");
            return (Criteria) this;
        }

        public Criteria andInsertTimeLessThan(Date value) {
            addCriterion("insert_time <", value, "insertTime");
            return (Criteria) this;
        }

        public Criteria andInsertTimeLessThanOrEqualTo(Date value) {
            addCriterion("insert_time <=", value, "insertTime");
            return (Criteria) this;
        }

        public Criteria andInsertTimeIn(List<Date> values) {
            addCriterion("insert_time in", values, "insertTime");
            return (Criteria) this;
        }

        public Criteria andInsertTimeNotIn(List<Date> values) {
            addCriterion("insert_time not in", values, "insertTime");
            return (Criteria) this;
        }

        public Criteria andInsertTimeBetween(Date value1, Date value2) {
            addCriterion("insert_time between", value1, value2, "insertTime");
            return (Criteria) this;
        }

        public Criteria andInsertTimeNotBetween(Date value1, Date value2) {
            addCriterion("insert_time not between", value1, value2, "insertTime");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNull() {
            addCriterion("is_delete is null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIsNotNull() {
            addCriterion("is_delete is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeleteEqualTo(String value) {
            addCriterion("is_delete =", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotEqualTo(String value) {
            addCriterion("is_delete <>", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThan(String value) {
            addCriterion("is_delete >", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteGreaterThanOrEqualTo(String value) {
            addCriterion("is_delete >=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThan(String value) {
            addCriterion("is_delete <", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLessThanOrEqualTo(String value) {
            addCriterion("is_delete <=", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteLike(String value) {
            addCriterion("is_delete like", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotLike(String value) {
            addCriterion("is_delete not like", value, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteIn(List<String> values) {
            addCriterion("is_delete in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotIn(List<String> values) {
            addCriterion("is_delete not in", values, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteBetween(String value1, String value2) {
            addCriterion("is_delete between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andIsDeleteNotBetween(String value1, String value2) {
            addCriterion("is_delete not between", value1, value2, "isDelete");
            return (Criteria) this;
        }

        public Criteria andCreateIdIsNull() {
            addCriterion("create_id is null");
            return (Criteria) this;
        }

        public Criteria andCreateIdIsNotNull() {
            addCriterion("create_id is not null");
            return (Criteria) this;
        }

        public Criteria andCreateIdEqualTo(Integer value) {
            addCriterion("create_id =", value, "createId");
            return (Criteria) this;
        }

        public Criteria andCreateIdNotEqualTo(Integer value) {
            addCriterion("create_id <>", value, "createId");
            return (Criteria) this;
        }

        public Criteria andCreateIdGreaterThan(Integer value) {
            addCriterion("create_id >", value, "createId");
            return (Criteria) this;
        }

        public Criteria andCreateIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("create_id >=", value, "createId");
            return (Criteria) this;
        }

        public Criteria andCreateIdLessThan(Integer value) {
            addCriterion("create_id <", value, "createId");
            return (Criteria) this;
        }

        public Criteria andCreateIdLessThanOrEqualTo(Integer value) {
            addCriterion("create_id <=", value, "createId");
            return (Criteria) this;
        }

        public Criteria andCreateIdIn(List<Integer> values) {
            addCriterion("create_id in", values, "createId");
            return (Criteria) this;
        }

        public Criteria andCreateIdNotIn(List<Integer> values) {
            addCriterion("create_id not in", values, "createId");
            return (Criteria) this;
        }

        public Criteria andCreateIdBetween(Integer value1, Integer value2) {
            addCriterion("create_id between", value1, value2, "createId");
            return (Criteria) this;
        }

        public Criteria andCreateIdNotBetween(Integer value1, Integer value2) {
            addCriterion("create_id not between", value1, value2, "createId");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("price is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("price is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(BigDecimal value) {
            addCriterion("price =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(BigDecimal value) {
            addCriterion("price <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(BigDecimal value) {
            addCriterion("price >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("price >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(BigDecimal value) {
            addCriterion("price <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("price <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<BigDecimal> values) {
            addCriterion("price in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<BigDecimal> values) {
            addCriterion("price not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("price between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("price not between", value1, value2, "price");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}